<?php
/**
 * template : menu top
 * theme : default
 * author : Gmax
 */
$data = $this->getDatas();
?>
<ul id="menu_footer" itemscope itemtype="http://schema.org/SiteNavigationElement">
    <?php foreach($data['items'] as $idx=>$item): ?>
    <li class="<?php echo ($item['url']===navigation::getTargetObject()->getUrl()||(navigation::getTargetObject()->getCategory()!==null&&navigation::getTargetObject()->getCategory()->getUrl()===$item['url'])||(navigation::getTargetObject()->getCategory()!==null&&navigation::getTargetObject()->getCategory()->getParent()!==null&&navigation::getTargetObject()->getCategory()->getParent()->getUrl()===$item['url']))?'active ':''; ?><?php echo $item['class']; ?>">
        <a itemprop="url" href="<?php echo $item['url']; ?>" title="<?php echo $item['title']; ?>" target="<?php echo $item['target']; ?>">
            <span itemprop="name"><?php echo $item['label']; ?></span>
        </a><?php echo ($idx<count($data['items']))?' - ':''; ?>
    </li>
    <?php endforeach; ?>
</ul>